(define-module (rain simplescreenrecorder)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages zip)
  #:use-module (gnu packages video)
  #:use-module (gnu packages pulseaudio)
  #:use-module (gnu packages pkg-config)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu))

(define-public simplescreenrecorder
  (package
    (name "simplescreenrecorder")
    (version "1.0")
    (source (origin
	     (method url-fetch)
	     (uri "https://github.com/MaartenBaert/ssr/archive/master.zip")
	     (sha256
	      (base32
	       "1bl8zm55hx9aigdii0briblbj3mywy9a5ssni2yx26fgqagjqa94"))))
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags '("--without-jack")))
    (inputs
     `(("libx11" ,libx11)
       ("libxfixes" ,libxfixes)
       ("libxi" ,libxi)
       ("qt-4" ,qt-4)
       ("ffmpeg" ,ffmpeg)
       ("alsa-lib" ,alsa-lib)
       ("pulseaudio" ,pulseaudio)
       ("glu" ,glu)
       ("mesa" ,mesa)))
    (native-inputs
     `(("pkg-config" ,pkg-config)
       ("unzip" ,unzip)))
    (home-page "http://www.maartenbaert.be/simplescreenrecorder/")
    (synopsis "record or stream your computer.")
    (description
     "SimpleScreenRecorder is a Linux program that I've created to record programs and games. There were already a few programs that could do this, but I wasn't 100% happy with any of them, so I created my own.")
    (license license:gpl3+)))

